package pl.edu.agh.broker.mns.server.internal;

import java.io.Serializable;

import pl.edu.agh.broker.mns.shared.Respondable;


public class RespondableObject {

	private final Respondable respondable;
	private final Serializable object;
	private final String key;

	public RespondableObject(String key, Serializable object,
			Respondable respondable) {
		this.key = key;
		this.respondable = respondable;
		this.object = object;
	}

	public Respondable getRespondable() {
		return respondable;
	}

	public Serializable getObject() {
		return object;
	}

	public String getKey() {
		return key;
	}

	@Override
	public String toString() {
		return "[" + key + "] -> " + object;
	}
}
